package grp.test.service;

import grp.test.dao.BorrowMapper;
import grp.test.pojo.Borrow;
import grp.test.pojo.Book;
import grp.test.pojo.BorrowKey;
import grp.test.service.IBorrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 明婵度 on 2020/8/15.
 */
public interface IBorrowService {
    //查询
    Book SearchBookById(Integer bookId);
    Book SearchBookByName(String bookName);
    //借阅 //删除库存
    List BorrowBook(Integer bookId,Integer userId);
    //续借
    Borrow RenewBook(BorrowKey user);
    //查询借阅记录
    Borrow LookMine(BorrowKey user);

}
